<template>
  <el-button type="primary" class="tx-button-save"  @click="click()"  v-if="$showAuthElement()">{{name}}</el-button>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      default: "保存"
    }
  }, 
  methods:{
    click(){
      this.$emit("click")
    },
  },
};
</script>
<style lang="scss">
.tx-button-save {
    width: 120px;
}
</style>
 
